#ifndef __GLES2PixelFormat_H__
#define __GLES2PixelFormat_H__

#include "PixelFormat.h"

namespace PVM
{
	class GLES2PixelUtil
	{
	public:
		static GLenum getGLOriginFormat(PixelFormat mFormat);
		static GLenum getGLOriginDataType(PixelFormat mFormat);
		static GLenum getGLInternalFormat(PixelFormat mFormat, bool hwGamma = false);
		static GLenum getClosestGLInternalFormat(PixelFormat mFormat, bool hwGamma = false);
		static PixelFormat getClosestFormat(GLenum fmt, GLenum dataType);
		static size_t getMaxMipmaps(size_t width, size_t height, size_t depth, PixelFormat format);
		static size_t optionalPO2(size_t value);
		static void convertToGLFormat(const PixelBox& src, const PixelBox& dst);
	};
}

#endif
